@bg-color: #b7d4a8;

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 360px;
    height: 420px;
    background-color: @bg-color;
    margin: 100px auto;
    border: 10px solid black;
    border-radius: 20px;
}

.stage {
    position: relative;
    width: 304px;
    height: 304px;
    border: 2px solid black;

    .snake {
        &>div {
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: black;
            border: 1px solid @bg-color;
        }
    }

    &>.food {
        position: absolute;
        left: 40px;
        top: 40px;
        width: 10px;
        height: 10px;
        background-color: rgb(148, 82, 82);
        border: 1px solid @bg-color;
    }
}

.score {
    display: flex;
    justify-content: space-between;
    width: 300px;
}
